]> dgit.raspbian.org Git - gnome-shell.git/commit
keyring-prompt: relax NULL check in remove_mnemonics()
authorCosimo Cecchi <cosimo@endlessm.com>
Sun, 26 May 2019 17:16:03 +0000 (10:16 -0700)
committerCosimo Cecchi <cosimo@endlessm.com>
Mon, 27 May 2019 15:36:11 +0000 (08:36 -0700)
commit2c45b5416eb3283453d56ccbc331a53b746862c5
tree525649fdb24b15b3e80deb37d6bf4b05f427e291
parent96c24733177a5bb2ea43179ee321cb507b6cd651
keyring-prompt: relax NULL check in remove_mnemonics()

Instead of considering a GValue containing a NULL string to be a
programmer error, simply return NULL.
remove_mnemonics() is in fact called on the value of the
"choice-label" property as well, which has NULL as its default
value.

This prevents triggering the following gnome-shell warning:

gnome-shell[1082]: remove_mnemonics: assertion 'label != NULL' failed

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/555
src/shell-keyring-prompt.c